import Vue from 'vue'
import 'normalize.css/normalize.css' // 浏览器渲染css兼容
import App from './App'
import Element from 'element-ui'
import './styles/element-variables.scss'
import '@/styles/index.scss' // global css
import '@/styles/transition.scss'
import '@/styles/element-ui.scss'
import './user' // permission control
import './global' // 全局组件
import 'amfe-flexible/index.js'
import '@/mixin/EchartsToRem'
import 'echarts-gl' // echarts 3D插件
import store from './store'
import router from './router'
import * as filters from './filters'

import ShowMessage from './utils/message' // global filters
import 'element-ui/lib/theme-chalk/index.css'

import {} from './directive/permission'

import '@/styles/iconfont/iconfont.css'

Vue.use(Element)
Object.keys(filters).forEach(key => {
  Vue.filter(key, filters[key])
})
// Vue.use(PadDownloader)
Vue.config.productionTip = false
Vue.prototype._message = new ShowMessage()
/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,

  store,
  render: h => h(App)
})
